﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<Model.ServicoModel>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
   
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">


<p>
    <%: Html.ActionLink("Cadastrar novo Servico", "Create") %>
</p>
<table>
    <tr>
        <th></th>
        <th>
            Codigo
        </th>
        <th>
            Nome
        </th>
        <th>
            Descricao
        </th>
        <th>
            Codigo da Especialidade
        </th>
    </tr>

<% foreach (var item  in Model) { %>
    <tr>
        <td>
            <%: Html.ActionLink("Editar", "Edit", new {  id=item.IDscodigo }) %> |
            <%: Html.ActionLink("Detalhes", "Details", new {  id=item.IDscodigo  }) %> |
            <%: Html.ActionLink("Exclusão", "Delete", new {  id=item.IDscodigo}) %>
        </td>
        <td>
            <%: item.IDscodigo %>
        </td>
        <td>
            <%: item.snome %>
        </td>
        <td>
            <%: item.sdescricao %>
        </td>
        <td>
            <%: item.IDsespecialidade %>
        </td>
    </tr>  
<% } %>

</table>
<%: Html.ActionLink("Back to List", "Index","Administrador") %>
</asp:Content>

